<?php 
header("Cache-Control:no-cache,must-revalidate,no-store"); //这个no-store加了之后，Firefox下有效
header("Pragma:no-cache");
header("Expires:-1");
?>
<!DOCTYPE html>
<html>
<head>
<title>订单支付</title>
<?php $this->load->view('common/include');?>
</head>
<body id="app" v-cloak>
	<header-layout title='Bone Vue'>
		<header-dock align='left'>
			<a href="<?php echo site_url('/shoppingcart'); ?>"><Icon type="back"></Icon></a>
		</header-dock>
		订单支付
		 
	</header-layout> 
	<layout-main>
		 
			<layout-box p="1111">
				 <div class="bo-col-6">
				 	<div class="info-item">
				 		<h3 class="name">订单总额</h3>
				 		<p class="content"><span class="price"><?php echo $order['total']; ?></span> 元</p>
				 	</div>
				 </div>
				 <div class="bo-col-6">
				 	<div class="info-item">
				 		<h3 class="name">账户余额</h3>
				 		<p class="content">
				 			<span class="price"><?php echo $user['balance']; ?></span> 元
				 		</p>
				 	</div>
				 </div>
			</layout-box>

			<layout-box p="1111" m="1000">
				 <div class="bo-col-12">
				 	<div class="info-item">
				 		<h3 class="name">支付方式</h3>
				 		<p class="content">余额支付（目前仅支持余额支付）</p>
				 	</div>
				 </div>
				 
			</layout-box>

			<grid-row p="1111">
				<btn type="warm" block=true name="立即支付" @btn-click="submit"></btn>
			</grid-row>
		 
	</layout-main>
 
	 
	<script>
		var ORDER = {
			orderid: <?php echo $order['id']; ?>,
			code: <?php echo mt_rand(0,1000000); ?>
		}
	</script>
	<script src="js/pay.build.js?v=1.2.1"></script>
</body>
</html>
